﻿//======================================================================
//
//        Copyright (C) 2008 HOHO``
//        All rights reserved
//
//        filename :$safeitemrootname$
//        description :程序左边菜单主要控件。
//
//        created by 裘中杰 at  $time$
//======================================================================


using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Hisun.Controllers;

namespace Hisun.UserControl.Menu
{
    public partial class LeftMenu : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session[ServerVars.sysSessionUserAuths] == null || string.IsNullOrEmpty(Session[ServerVars.sysSessionUserAuths].ToString()))
                throw new Exception("没有登录！");
            AbcMenu menu = new AbcMenu();
            TreeView1.Nodes.Add(menu.GetOwnLeftMenu((List<int>)Session[ServerVars.sysSessionUserAuths]));

        }
    }
}